<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-for测试</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="aaa">
        <table border="1" cellpadding="20" cellspacing="0" align="center">
            <!-- <tr v-for="(item,index) in address">
                <td>{{index}}</td>
                <td>{{item.province}}</td>
                <td>{{item.city}}</td>
            </tr> -->
            <tr v-for="(value,key,index) in address">
                <td>{{index}}</td>
                <td>{{key}}</td>
                <td>{{value}}</td>
            </tr>
        </table>
    </div>
    <script>
        const vm = new Vue({
            el:"#aaa",
            data() {
                return {
                    // address:[
                    //     {province:"四川省",city:"成都市"},
                    //     {province:"湖北省",city:"武汉市"}
                    // ]
                    address:{province:"四川省",city:"成都市"}
                };
            },
        })
    </script>
</body>
</html>